package com.regent.central.bill.service.bean.stock;

import com.regent.central.bill.core.storehouse.StockInventoryItem;
import com.regent.central.bill.repository.storehouse.StockInventoryItemMapper;
import com.regent.central.bill.service.storehouse.StockInventoryItemService;
import com.regent.central.infrastructure.service.bean.DomainServiceBean;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class StockInventoryItemServiceBean  extends DomainServiceBean<StockInventoryItemMapper, StockInventoryItem> implements StockInventoryItemService {
    @Override
    public int updateBookStock(String styleId, String nearInventoryId, BigDecimal stock)  {
        return mapper.updateBookStock(styleId,nearInventoryId,stock);
    }
}
